<template>
  <div class="slot">
    <slot>默认插槽</slot>
    <br/>
    <slot name="pro">pro插槽</slot>
    <br/>
    <slot name="obj" v-bind="{name:'123',age:'20'}">obj插槽</slot>
  </div>
</template>

<script setup lang="ts">

</script>

<style lang="scss" scoped>
.slot {
  margin: 0 auto;
  width: 200px;
  height: 100px;
  border: 5px solid skyblue;
  background-color: pink;
}
</style>